from django.contrib import admin
from PSM.PSMDatabase.models import *


class DetailStudentAdmin(admin.ModelAdmin):
    list_display = ('studentID', 'firstName', 'lastName', 'section',\
'teacherName', 'labScore', 'midScore',\
'finalScore', 'totalScore', 'gradeScore')


class ReportStudentAdmin(admin.ModelAdmin):
    list_display = ('studentID', 'firstName', \
'lastName', 'section', 'totalScore', 'gradeScore')


class HistoryAdmin(admin.ModelAdmin):
    list_display = ('dateHistory', 'historyDetail')


class UploadFilesAdmin(admin.ModelAdmin):
    list_display = ('name', 'files', 'upload_date')


admin.site.register(DetailStudent, DetailStudentAdmin)
admin.site.register(ReportStudent, ReportStudentAdmin)
admin.site.register(History, HistoryAdmin)
admin.site.register(UploadFiles, UploadFilesAdmin)
